
/********常量数据*********/
/**
 * 用户ID
 * @type {number}
 */
const UID = parseInt($("#uid").val());
/**
 * 访客ID
 * @type {number}
 */
const VISITORUID = parseInt($("#visitor_id").val());

/**
 * 帖子ID
 * @type {number}
 */
const PID = parseInt($("#post_id").val());

/**
 * 文件服务器地址
 * @type {string}
 */
const FILE_SERVER_ADDR = 'http://123.207.19.115:8888';

/********常量数据*********/



/********URL数据*********/
//默认URL
//app前缀
const PREFIX = '/home';

//页面
const INDEX = PREFIX+"/index";
const HOT_INDEX = PREFIX+'/hot';
const FORUM_INDEX = PREFIX+'/forum';
const SAFE_INDEX = PREFIX+'/safe';
const PUBLISH_INDEX = PREFIX+'/publish';
const ERROR_INDEX = PREFIX+"/error";
const POST_INDEX = PREFIX+'/post/';
const OFF_INDEX = PREFIX+'/off';

//请求
const POST_LIST_OK = PREFIX+'/post/pages';
const POST_STATUS_OK_IDS = PREFIX+'/post/status/ok/ids';
const SUM_POST_STATUS_OK = PREFIX+'/post/ok/sum';
const POST_HOT = PREFIX+'/post/hot';
const FORUM_LIST = PREFIX+'/forum/list';
const FORUM_POST_LIST = PREFIX+'/forum/post/list';
const SUM_FORUM_POST= PREFIX+ '/forum/post/nums';
const COLLECTION_FORUM_UIDS= PREFIX+ '/collection/forum/uids/';
const MESSAGE_NOTICE = PREFIX+'/notice';
const USER_LOGIN = PREFIX+'/user/login';
const USER_LOGOUT = PREFIX+'/user/logout';
const SEND_CODE = PREFIX+'/send/code/';
const SEND_CODE_P = PREFIX+'/send/code_p/';
const CHECK_CODE = PREFIX+'/check/code';
const USER_REGISTER = PREFIX+'/user/register';
const POST_INFO = PREFIX+'/post/info/';
const COMMENT_INFO = PREFIX+'/comment/info/';


//需要session验证url

/**
 * 个人主页
 */
const USER_INDEX = PREFIX+'/user';
const USER_SET = PREFIX+'/user/set';

/**
 * 访客主页
 * @type {string}
 */
const VISITOR_INDEX = PREFIX+'/visitor/';

/**
 * 个人收藏页
 */
const COLLECTION_INDEX = PREFIX+'/collection';

/**
 * 个人帖库页
 */
const REPO_INDEX = PREFIX+'/repo';

/**
 * 个人信息
 * @type {string}
 */
const USER_INFO = PREFIX+'/user/info/';

/**
 * 更新昵称
 * @type {string}
 */
const UPDATE_NICKNAME = PREFIX+'/update/nickname';

/**
 * 更新头像
 * @type {string}
 */
const UPDATE_ICON = PREFIX+'/update/icon';

/**
 * 上传用户头像 url
 * @type {string}
 */
const UPLOAD_ICON= PREFIX+'/upload/icon';

/**
 * 更新密码
 * @type {string}
 */
const UPDATE_PASSWORD = PREFIX+'/update/password';
const UPDATE_PASSWORD_EMAIL = PREFIX+'/update/password_email';

/**
 * 发帖子/状态修改/删除操作
 */
const POST_ADD = PREFIX+'/post/add';
const UPDATE_POST_STATUS = PREFIX+'/update/post/status';
const POST_DEL = PREFIX+'/post/delete/';

/**
 * 点赞/取消点赞操作
 */
const LIKES_ADD =PREFIX+'/likes/add';
const LIKES_DEL = PREFIX+'/likes/del';


/**
 * 评论/回复操作
 */
const COMMENT_ADD = PREFIX+'/comment/add';

/**
 * 分享 操作
 * @type {string}
 */
const POST_SHARE = PREFIX +'/post/share';

/**
 * 举报帖子
 * @type {string}
 */
const REPORT_POST = PREFIX + '/report/post';

/**
 * 举报用户
 * @type {string}
 */
const REPORT_USER = PREFIX + '/report/user';


/**
 * 上传图片
 * @type {string}
 */
const UPLOAD_IMAGE = PREFIX+'/upload/postimage';

/**
 * 关注用户的用户ID集合 url
 * @type {string}
 */
const COLLECTION_USER_UIDS=PREFIX+'/collection/user/uids/';


/**
 * 举报该用户的所有用户ID集合 url
 * @type {string}
 */
const REPORT_USER_UIDS = PREFIX+'/report/user/uids/';
/**
 * 举报该帖子的所有用户ID集合
 * @type {string}
 */
const REPORT_POST_UIDS = PREFIX+'/report/post/uids/';

/**
 * 帖子的点赞用户集合
 * @type {string}
 */
const POST_LIKES_UIDS = PREFIX +'/post/likes/uids/';

/**
 * 帖子的收藏用户集合
 * @type {string}
 */
const POST_COLLECTION_UIDS = PREFIX + '/collection/post/uids/';

/**
 * 关注版块 url
 * @type {string}
 */
const COLLECTION_FORUM = PREFIX+'/collection/forum';

/**
 * 关注用户 url
 * @type {string}
 */
const COLLECTION_USER = PREFIX+ '/collection/user';

/**
 * 收藏帖子 url
 * @type {string}
 */
const COLLECTION_POST = PREFIX +'/collection/post';

/**
 * 取消关注用户 url
 * @type {string}
 */
const COLLECTION_USER_DEL =PREFIX+'/collection/user/delete';

/**
 * 取消关注版块 url
 * @type {string}
 */
const COLLECTION_FORUM_DEL = PREFIX+'/collection/forum/delete';

/**
 * 取消收藏帖子 url
 * @type {string}
 */
const COLLECTION_POST_DEL = PREFIX+'/collection/post/delete';

/**
 * 删除一条关注数据
 * @type {string}
 */
const COLLECTION_DEL = PREFIX+'/collection/del/';

/**
 * 用户正常帖子列表
 * @type {string}
 */
const USER_POSTS_OK = PREFIX+'/user/post/list';

/**
 * 用户下的正常帖子数
 * @type {string}
 */

const SUM_USER_POST_OK = PREFIX+'/user/post/ok/sum';

/**
 * 用户帖子回收站
 * @type {string}
 */
const POST_RECY =PREFIX+'/post/recy/';

/**
 * 用户所有关注者
 * @type {string}
 */
const USER_FOLLOWERS =PREFIX+ '/user/followers/';

/**
 * 用户今日发帖数
 * @type {string}
 */
const USER_POST_TODAY_NUM=PREFIX+'/post/today/num/';

/**
 * 用户全部可发贴
 * @type {string}
 */
const USER_POST_TOTAL_NUM=PREFIX+'/post/total/num/';

/**
 * 用户剩余可发贴数
 */
const USER_POST_RESIDUE_NUM=PREFIX+'/post/residue/num/';

/**
 * 用户关注的用户集合
 * @type {string}
 */
const COLLECTION_USERS=PREFIX+'/collection/users/';

/**
 * 用户关注的版块集合
 * @type {string}
 */
const COLLECTION_FORUMS=PREFIX+'/collection/forums/';

/**
 * 用户关注的帖子集合
 * @type {string}
 */
const COLLECTION_POSTS=PREFIX+'/collection/posts/';

/**
 * 消息通知
 * @type {string}
 */
const MESSAGE_LIKES = PREFIX+'/message/likes/';
const MESSAGE_COMMENT =PREFIX+ '/message/comment/';
const MESSAGE_COLLECTION =PREFIX+ '/message/collection/';

const MESSAGE_LIKES_UPDATE_STATUS = PREFIX+'/message/likes/update/status/';
const MESSAGE_COMMENT_UPDATE_STATUS = PREFIX+'/message/comment/update/status/';
const MESSAGE_COLLECTION_UPDATE_STATUS = PREFIX+'/message/collection/update/status/';

const NOTICE_NEW = PREFIX+'/notice/new';

const CONFIG = PREFIX+'/config/';

const SCORE = PREFIX+ '/update/score';

/**
 * 景点服务api
 * @type {string}
 */
const SCENIC_TYPE = PREFIX+'/scenic/type/';
const SCENIC_ADDRESS = PREFIX+'/scenic/address/';
const SCENIC_TITLE = PREFIX+'/scenic/title/';